import {ElLoading} from 'element-plus'

export function openLoading(text) {
    return ElLoading.service({
        lock: true,
        text: text,
        background: 'rgb(0,0,0,0.7)',
    })
}

export function closeLoading(loading) {
    // 不知道该方法可行不.
    loading.close()
}